package dao;

import java.util.List;

import pojo.Categories;
import pojo.Food;
import pojo.Merchant;

public interface FoodDao{

	public List<Food> findByCategory(String mId, String typeId);
	public List<Food> findByMerchant(String mId);
	public int getCountByCategory(String mId,String typeId) ;
	public int getCountByMerchant(String mId);
	public List<Food> findByMerchantPage(String mId, int pageNo, int pageSize);
	public List<Food> findFoodByCategoryPage(String mId, String typeId, int current, int pageSize);
	public Food delete(String id);
	public Food load(String id);
	public Food update(Food food);
	public void add(Categories categories, Merchant merchant);
	
}
